﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:local="clr-namespace:OMANE.Common.UI.Theme" 
    xmlns:ig="clr-namespace:Infragistics.Windows.Editors;assembly=InfragisticsWPF4.Editors.v10.3"
    xmlns:igWindows="http://infragistics.com/Windows"
    mc:Ignorable="d" >

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="../../DictionnairesTheme/OMANE_Brushes.xaml" />
        <ResourceDictionary Source="../../DictionnairesTheme/OMANE_Base.xaml" />
    </ResourceDictionary.MergedDictionaries>
    
	<Style BasedOn="{StaticResource controlOMANE}" TargetType="{x:Type local:Editor}">
		<Setter Property="Background" Value="{DynamicResource DefaultBackgroundBrush}"/>
		<Setter Property="BorderBrush" Value="{DynamicResource BrushCouleur2Base}"/>
		<Setter Property="Padding" Value="1"/>
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>
		<Setter Property="Width" Value="150"/>
		<Setter Property="HorizontalAlignment" Value="Left"/>
		<Setter Property="Margin" Value="5,1,1,1"/>
		<Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
		<Setter Property="RenderTransform">
			<Setter.Value>
				<TransformGroup>
					<ScaleTransform/>
					<SkewTransform/>
					<RotateTransform/>
					<TranslateTransform/>
				</TransformGroup>
			</Setter.Value>
		</Setter>
		<Setter Property="Value">
			<Setter.Value>
				<sys:Double>0.11367</sys:Double>
			</Setter.Value>
		</Setter>
		<Setter Property="Cursor" Value="Pen"/>		
		<Setter Property="EditModeTemplate" Value="{DynamicResource EditModeTemplate}"/>
        <Setter Property="Template" Value="{DynamicResource NormalModeTemplate}"/>        
        <Style.Triggers>
			<Trigger Property="IsInEditMode" Value="True">
				<Setter Property="Background" Value="White"/>
				<Setter Property="BorderBrush" Value="{DynamicResource BrushCouleur1BckFonce}"/>
			</Trigger>
			<Trigger Property="IsMouseOver" Value="True">
				<Setter Property="RenderTransform">
					<Setter.Value>
						<TransformGroup>
							<ScaleTransform ScaleX="1.1" ScaleY="1.1"/>
							<SkewTransform/>
							<RotateTransform/>
							<TranslateTransform/>
						</TransformGroup>
					</Setter.Value>
				</Setter>
			</Trigger>
		</Style.Triggers>						
	</Style>
    
    <ControlTemplate x:Key="EditModeTemplate" TargetType="{x:Type local:Editor}">
		
	</ControlTemplate>

    <ControlTemplate x:Key="NormalModeTemplate" TargetType="{x:Type local:Editor}">
		
	</ControlTemplate>
</ResourceDictionary>
